@extends('users.app')
@section('title', '修改个人资料')
@section('content')
<div class="col-md-6 offset-md-3">
<div class="card">
<div class="card-header border-bottom">
<h4 class="card-title">修改个人资料</h4>
</div>
<div class="card-body">
  @include('common.error')
<form action="{{ route('users.update', $user->id) }}" method="POST" accept-charset="UTF-8">
  <input type="hidden" name="_method" value="PUT">
  {{ csrf_field() }}
<div class="form-row">
<div class="form-group col-lg-12">
  <label for="username">用户名(不可更改)</label>
  <input type="text" name="name" class="form-control" value="{{ $user->name}}" disabled>

</div>
<div class="form-group col-lg-12">
  <label for="qq">QQ(选填)</label>
<input type="text" name="qq" class="form-control" id="qq"  value="{{ old('qq', $user->qq)}}">

</div>
<div class="form-group col-lg-6">
  <label for="password">密码 (不修改请留空)</label>
  <input type="password" name="password" class="form-control" id="password">

</div>
<div class="form-group col-lg-6">
  <label for="confirmPassword">确认密码</label>
  <input type="password" name="password_confirmation" class="form-control" id="confirmPassword">
</div>
<div class="form-group col-lg-12 text-righ">
<button type="submit" class="btn btn-common">保存</button>
</div>
</div>
</form>
</div>
</div>
</div>

@stop
